package com.apop.common.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class UserAuth {
    private Integer id;

    private String username = "admin";

    private String password;

    private Boolean isAdmin = false;
    
    private Boolean isLock = false;
    
    private Integer count = 0;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createdTime;

    private Integer errorTime = 0;

    public void setId(Integer id) {
        this.id = id;
    }
}